package com.fowo.api.controller.handleWork;

import com.fowo.api.common.model.R;
import com.fowo.api.model.sales.withdraw.SalesWithdrawVo;
import com.fowo.api.model.sales.withdraw.product.SalesWithdrawProductItemVo;
import com.fowo.api.service.StockInService;
import com.fowo.api.service.handleWork.SalesWithdrawOrderService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Tag(name = "销售退货单自定义接口")
@RequestMapping("/api/sales_withdraw_order")
@RestController
public class SalesWithdrawOrderController {

    @Resource
    private StockInService stockInService;
    @Resource
    private SalesWithdrawOrderService service;
    @Operation(summary = "快捷入库")
    @PostMapping("/storage")
    public R batchFastStorage(@RequestBody List<SalesWithdrawVo> salesWithdrawVo){
        return R.run(()-> service.batchFastStorage(salesWithdrawVo));
    }
}
